<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8" />
	<title>兄弟连论坛-PHP技术交流 >个人中心</title>
	<link href="../public/home/css/qingkongsuoyougeshi.css" rel="stylesheet" type="text/css" />
	<link href="../public/home/css/css3.css" rel="stylesheet" type="text/css" />
</head>
<body>
	<div id="tophead">
		<div>
			<div id="top1">
				<div>
					<a href="#">设为首页</a>
					<a href="#">收藏LAMP兄弟连</a>
					
					<a href="#">帮助</a>
					<a href="#">推广链接</a>
					<a href="#">社区应用</a>
					<a href="#">最新帖子</a>
					<a href="#">精华区</a>
					<a href="#">社区服务</a>
					<a href="#">统计排行</a>
					<a href="#">搜索</a>
				</div>
			</div>
		</div>
		<div>
			<div id="top2">
				<div>
					<img src="../public/home//img/logo.png" />
					
					<?php
						if(!isset($_GET['id'])){
						
					?>
					
					<form method="post" action="doLogin.php">
						<input type="text" name="userName" />
						<input type="password" name="password" />
						<input type="checkbox" name="jihzumima" value="jizhu" />
						<span>记住密码</span>
						<a href="#">找回密码</a>
						<input type="submit" value="登录" />
						<a href='./reg.php'><button type="button">注册</button></a>
					</form>
					
					<?php
					}else{
						$con = mysqli_connect('localhost','root','www');
						mysqli_set_charset($con,'utf8');
						mysqli_select_db($con,'admin');
						$SQL = "select * from userDetail where id={$_GET['id']}";
						$result = mysqli_query($con,$SQL);
						$arr = mysqli_fetch_assoc($result);
					?>
					
					<div id='php'>
							<div id='php1'>
								<div><p>会员名：<?php echo $arr['name']; ?> &nbsp;.</p></div>
								<div><p>[普通会员]</p></div>
								<div><p>[积分:50]</p></div>
							</div>
							<div id='php2'>
								<div><img src="../public/home/tmp_name/<?php echo $arr['photo']; ?>" /></div>
							</div>
							<div id='php3'>
								<a href=''>更改个人信息</a>
								<a href='./updateHeadPhoto.php?id=<?php echo $_GET['id']; ?>'>更改头像</a>
							</div>
							<div id='php4'>
								<a href='./updateNames.php'>退出</a>
							</div>
							<div style='clear:both'></div>
					</div>
					
					<?php
						}
					?>
				
				</div>
			</div>
		</div>
		<div>
			<div id="top3">
				<div>
					<a href="#">技术交流</a>
					<a href="#">兄弟连</a>
					<a href="#">连队趣事</a>
					<a href="#">议事厅</a>
				</div>
			</div>
		</div>
	</div>
	
	<div id="zhongbu">
		<div id="zhong1">
			<div>
				<div>
					<a href='./homePage.php?id=<?php echo $_GET['id']; ?>'><img src="../public/home//img/home.gif.png" /></a>
					<span>LAMP兄弟连 > 个人中心 > 修改信息</span>
				</div>
			</div>
		</div>
		<div id="zhong2">
			<div>
				<div id="xiugai">
					<div>
							<a href="">修改信息</a>
							<a href="./updatePassword.php?id=<?php echo $_GET['id']; ?>">修改密码</a>
							<a href="./updateHeadPhoto.php?id=<?php echo $_GET['id']; ?>">修改头像</a>
					</div>
				</div>
				<div id="xinxi">
					<div>
						<form method="post" action="doUpdateNames.php">
							<div>
								<span>昵　称　：</span><input type="text" name="name" />
							</div>
							<div>
								<span>邮　箱　：</span><input type="text" name="email" />
							</div>	
							<div>
								<span>Q　&nbsp;Q　：&nbsp;</span><input type="text" name="qq" />
							</div>
							<div>
								<input type='submit' value='提交' />
								<input type='hidden' name='id' value='<?php echo $_GET['id']; ?>' />
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>
		<div id="dibu">
			<div>
				<a href="#">联系我们</a>
				<span>|</span>
				<a href="#">无图版</a>
				<span>|</span>
				<a href="#">手机浏览</a>
				<span>|</span>
				<a href="#">清除COOKIES</a>
			</div>
			<div>
				<p>Powered by phpwind v8.7 Certificate Copytight Time now is:08-22 08:45</p>
			</div>
			<div>
				<p>©2006-2015 LAMP兄弟连 版权所有 Gzip disabled 京ICP备11018177号 Total 0.040525(s) query 3,京公网安备11011302000117</p>
			</div>
		</div>
	</div>

</body>
</html>